from mailthon import postman, email



p = postman(host='smtp.qq.com', auth=('aemaeth@foxmail.com', 'frightene99'))

def mSender(eINfo):
    r = p.send(email(
            content='This mail was automaticly send by FOW_SQL_COMMANDER, see the following error:</br></br></br>' + '<strong>' + eINfo + '</strong>',
            subject='[DO NOT REPLY] SQL_COMMANDER WARNING',
            sender='FOW_SQL_CMDR <aemaeth@foxmail.com>',
            receivers=['ae.huang@fowtech.com', 'greg.ch@fowtech.com', 'suggestion.l@fowtech.com'],
        ))
    assert r.ok

